package com.yunwushanhe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunwushanhe.bean.req.LinkAddReq;
import com.yunwushanhe.bean.req.LinkPageListReq;
import com.yunwushanhe.bean.req.LinkStatusUpdateReq;
import com.yunwushanhe.bean.req.LinkUpdateReq;
import com.yunwushanhe.bean.ret.ResponseResult;
import com.yunwushanhe.bean.vo.LinkPageListVO;
import com.yunwushanhe.bean.vo.LinkUpdateVO;
import com.yunwushanhe.bean.vo.LinkVO;
import com.yunwushanhe.bean.vo.PageVO;
import com.yunwushanhe.entity.Link;

import java.util.List;

/**
 * 友链(Link)表服务接口
 *
 * @author 抬头看看天
 * @since 2023-08-05 21:43:19
 */
public interface LinkService extends IService<Link> {

    ResponseResult<List<LinkVO>> getAllLink();

    ResponseResult<PageVO<List<LinkPageListVO>>> getLinkPageList(LinkPageListReq linkPageListReq);

    ResponseResult<Object> addLink(LinkAddReq linkAddReq);

    ResponseResult<LinkUpdateVO> getLinkUpdateById(Long id);

    ResponseResult<Object> updateLinkById(LinkUpdateReq linkUpdateReq);

    ResponseResult<Object> deleteLinkById(String id);

    ResponseResult<Object> changeLinkStatus(LinkStatusUpdateReq linkStatusUpdateReq);
}

